package com.sweetcircle;

import com.benjaminwan.ocrlibrary.OcrResult;
import com.sweetcircle.utils.AnanUtils;
import io.github.mymonstercat.Model;
import io.github.mymonstercat.ocr.InferenceEngine;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * &#064;project_name: sweet-circle-server
 * &#064;Author: Anan
 * &#064;time: 2024/8/13 下午7:44
 */


public class test {
    public static void main(String[] args) {
//        String encrypt = AnanUtils.MD5Encryption(String.valueOf(System.currentTimeMillis()),"messageId");
//        System.out.println(encrypt);

        InferenceEngine engine = InferenceEngine.getInstance(Model.ONNX_PPOCR_V3);
        OcrResult ocrResult = engine.runOcr("C:\\Users\\hp\\Desktop\\java\\RapidOcr-Java\\docs\\img\\log.png");
        System.out.println(ocrResult.getStrRes().trim());
    }
}
